Release 10.1A: OpenEdge Development:
Progress 4GL Handbook
Navigation methods
There is a dynamic navigation method for each of the corresponding
GETstatements:GET-FIRST,GET-NEXT,GET-PREV, andGET-LAST. There is also aGET-CURRENTmethod that corresponds to theGET CURRENTstatement, which again retrieves the current record from the database, normally to check to see whether it has been changed since you last read it.These methods can take optional arguments that you can use to specify the lock mode (
NO-LOCK,SHARE-LOCK, orEXCLUSIVE-LOCK) and wait mode (if it isNO-WAIT). The default lock mode isSHARE-LOCK. You will generally want to change this default to specify eitherNO-LOCKorEXCLUSIVE-LOCK, depending on whether you need to prepare for it to be changed and protect the record against changes by other users.Here’s a completion of the simple procedure used throughout this section, showing the
QUERY-PREPARE,QUERY-OPEN, andGET-NEXTmethods and the use of theQUERY-OFF-ENDattribute:
Figure 19–8 shows the result.
Figure 19–8: Result of query methods and attributes example
![]()
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |